﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace i4pro_gruppe_d.Database
{
    using Types;
    public class StubDatabase : AbstractDatabase
    {

        public override List<string> ReadScriptNames()
        {

            List<String> testScriptList = new List<string>();
            String script1 = "Move to the left";
            String script2 = "Move to the right";
            String script3 = "Shake robot ass";

            testScriptList.Add(script1);
            testScriptList.Add(script2);
            testScriptList.Add(script3);

            return testScriptList;
        }

        public override Script ReadScript(string scriptName)
        {
            String line1 = "startTP" + "\r\n" + "startTP" + "\r\n";
            String line2 = "Start()" + "\r\n" + "Move(55,11,99)" + "\r\n" + "Stop()";

            Script script1 = new Script("Shake robot ass", line1);
            Script script2 = new Script("Move to the left", line2);

            if (script1.Name == scriptName)
            {
                return script1;
            }
            if (script2.Name == scriptName)
            {
                return script2;
            }
            return new Script("", "");
        }

        #region IDatabase Members

        public override bool WriteBrick(Brick brick)
        {
            throw new NotImplementedException();
        }

        public override List<Brick> ReadBrick(DateTime date)
        {
            throw new NotImplementedException();
        }

        public override bool UpdateBrick(Brick brick)
        {
            throw new NotImplementedException();
        }

        public override bool WriteScript(Script script)
        {
            throw new NotImplementedException();
        }

        public override bool RemoveScript(string script)
        {
            throw new NotImplementedException();
        }

        public override bool NewBatch(DateTime startTime, DateTime finishTime)
        {
            throw new NotImplementedException();
        }

        public override bool SetBatchEndTime(DateTime finishTime)
        {
            throw new NotImplementedException();
        }

        public override bool WriteRobot(Robot robot)
        {
            throw new NotImplementedException();
        }

        public override bool WriteEventLog(EventLog eventLog)
        {
            throw new NotImplementedException();
        }

        public override List<Log> ReadLog(DateTime dateTime)
        {
            throw new NotImplementedException();
        }

        public override bool UpdateUser(User user, string oldUserName)
        {
            throw new NotImplementedException();
        }

        public override bool NewUser(User user)
        {
            throw new NotImplementedException();
        }

        public override int GetUserRights(User user)
        {
            throw new NotImplementedException();
        }

        public override List<User> getUserList()
        {
            throw new NotImplementedException();
        }

        public override bool DeleteUser(User user)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}